<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<tr rowId="${list.id}_${source.ccUrl}">
    <td valign="top" nowrap="true">
        <%-- delete source link --%>
        <span class="removeUrl imageLink"  videoId="${source.ccUrl}" listId="${list.id}"><img src="<c:url value="/images/delete.png"/>" alt="delete" title="delete"/></span>
        <%-- edit source --%>
        <span class="editUrl imageLink"    videoId="${source.ccUrl}" listId="${list.id}"><img src="<c:url value="/images/edit.png"/>" alt="edit" title="edit"/></span>
        <%-- go to web source for this item --%>
        <a class="goToUrl" href="${source.url}"><img src="<c:url value="/images/house.png"/>" alt="go to web page" title="go to web page" border="0"/></a>
    </td>
    <td  nowrap="true">
        <%-- name and url combo have title showing fill name --%>
        <span class="previewUrl" videoId="${source.ccUrl}" title="${source.name}">

            <%-- shorten name and url so we have a consistant layout. --%>
            <c:if test="${fn:length(source.name) > 40}">${fn:substring(source.name,0,37)}...</c:if>
            <c:if test="${fn:length(source.name) <= 40}">${source.name}</c:if>
            <br/>
            <c:if test="${fn:length(source.ccUrl) > 40}">${fn:substring(source.ccUrl,0,37)}...</c:if>
            <c:if test="${fn:length(source.ccUrl) <= 40}">${source.ccUrl}</c:if>
        </span>
    </td>
</tr>